package com.scau.meetingbook.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scau.meetingbook.pojo.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.scau.meetingbook.vo.ResultVO;
import java.util.List;

public interface UsersService extends IService<Users> {
    ResultVO insertUsers(Users users) throws Exception;
    ResultVO<Users> getUsersById(Integer id) throws Exception;
    ResultVO updateUsersById(Users users) throws Exception;
    ResultVO deleteUsersById(Integer id) throws Exception;
    ResultVO register(Users users) throws Exception;
    ResultVO login(Users users) throws Exception;
    ResultVO changeUserStatus(Integer id, String status) throws Exception;
    ResultVO<Page<Users>> getUsers(Integer pageNum, Integer pageSize);
    ResultVO<Page<Users>> getUsersByCondition(Users  users,  Integer pageNum, Integer pageSize);
}